add_executable(ld_test main.c)
target_include_directories(
    ld_test PRIVATE 
    ${PROJECT_ROOT}/include
    ${BUILD_DIR}/kconfig/include/generated)

target_link_options(ld_test PRIVATE "-Wl,-Map=output.map")  # 生成映射文件
target_link_options(ld_test PRIVATE 
    "-T${PROJECT_ROOT}/apps/ldscript-test/test.ld"
)
target_link_libraries(ld_test ${QELIB})

